home *** CD-ROM | disk | FTP | other *** search
- 100 print"[147]hardcoy fuer einsteiger von thomas lipp";chr$(13);chr$(13)
- 110 open 1,4,1
- 120 print#1,chr$(27);"@" : rem drucker initialisieren
- 130 print#1,chr$(27);chr$(108);chr$(10); : rem 10 spalten linker rand
- 140 print#1,chr$(27);chr$(51);chr$(24); : rem zeilenabstand 24/216 zoll
- 150 :
- 160 dim s(7,7) : rem 64 bit feld
- 170 b=8192 : rem startadresse, basis
- 180 :
- 190 for i=0 to 7
- 200 : a(7-i) = 2^i : rem in a(0-7) ist
- 210 : rem 128, 64, .. 1
- 220 next i
- 230 :
- 240 for z=0 to 24
- 250 : print#1,chr$(27);"*";chr$(4);chr$(64);chr$(1); : rem grafik-sequenz
- 260 : for s=0 to 39
- 270 : for n=0 to 7
- 280 :
- 290 : m=b+z*320+s*8+n
- 300 : x = peek(m)
- 310 : print chr$(13);"[145]";m;" ";
- 320 : for i=0 to 7
- 330 : if x>=a(i) then x=x-a(i) : s(n,i) =1 : print"*"; : goto350
- 340 : s(n,i) = 0 : print".";
- 350 : next i
- 360 : next n
- 370 :
- 380 : rem kippen des 8-byte blocks
- 390 :
- 400 : for n=0 to 7
- 410 : j = 0
- 420 : for i=0 to 7
- 430 : j = j+s(i,n)*a(i)
- 440 : next i
- 450 : rem und drucken des bytes
- 460 : print#1,chr$(j);
- 470 : next n
- 480 : next s
- 490 : print#1,chr$(13);
- 500 next z
- 510 close 1
-